<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录 - 我的相册</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f5f5f5;
            font-family: Arial, sans-serif;
        }
        .login-container {
            background-color: white;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            width: 300px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #333;
        }
        .form-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .btn {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .btn-login {
            background-color: #4CAF50;
            color: white;
            margin-bottom: 10px;
        }
        .btn-register {
            background-color: #2196F3;
            color: white;
        }
        .error-message {
            color: red;
            margin-bottom: 10px;
            display: none;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2 style="text-align: center; margin-bottom: 30px;">登录</h2>
        <div id="errorMessage" class="error-message"></div>
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password" required>
        </div>
        <button class="btn btn-login" onclick="login()">登录</button>
        <button class="btn btn-register" onclick="showRegister()">注册新账号</button>
        <button class="btn btn-reset" onclick="showResetPassword()" style="background-color: #607d8b; margin-top: 10px;">忘记密码</button>
    </div>
    <script src="auth.js"></script>
</body>
</html>